package com.hgz.jdbcDemo.pojo;

import java.util.Date;
import java.util.StringJoiner;

/**
 * @author 小志
 * @date 2025/2/24 - 15:27
 */
public class Staffs {
    private Integer id;
    /**
     * 姓名
     */
    private String name;
    /**
     * 年龄
     */
    private Integer age;
    /**
     * 联系方式
     */
    private String phone;
    /**
     * 职位
     */
    private String staPos;
    /**
     * 入职时间
     */
    private Date addTime ;
    /**
     * 更新时间
     */
    private Date updateTime;

    public Staffs() {
    }

    public Staffs(Integer id, String name, Integer age, String phone, String staPos, Date addTime, Date updateTime) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.phone = phone;
        this.staPos = staPos;
        this.addTime = addTime;
        this.updateTime = updateTime;
    }

    public Staffs(String name, Integer age, String phone, String staPos) {
        this.name = name;
        this.age = age;
        this.phone = phone;
        this.staPos = staPos;
    }

    public Staffs(Integer id, String name, Integer age, String phone, String staPos) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.phone = phone;
        this.staPos = staPos;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getStaPos() {
        return staPos;
    }

    public void setStaPos(String staPos) {
        this.staPos = staPos;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return new StringJoiner(", ", Staffs.class.getSimpleName() + "[", "]")
                .add("id=" + id)
                .add("name='" + name + "'")
                .add("age=" + age)
                .add("phone='" + phone + "'")
                .add("staPos='" + staPos + "'")
                .add("addTime=" + addTime)
                .add("updateTime=" + updateTime)
                .toString();
    }
}
